//
//  OrderEdit.h
//  iHedron
//
//  Created by George Radev on 2011-07-22.
//  Copyright 2011 I Me Mine. All rights reserved.
//

#import <UIKit/UIKit.h>
#import <AddressBook/AddressBook.h>
#import <AddressBookUI/AddressBookUI.h>
#import "HedronCore.h"

#define ALERT_OK_MODE 1
#define ALERT_CLEAR_MODE 2
#define ALERT_SAVE_MODE 3

@interface OrderEdit : UITableViewController<UIAlertViewDelegate, ABPeoplePickerNavigationControllerDelegate> {
	bool updateMode;
	Order* editedOrder;
	int alertMode;
}
@property bool updateMode;

-(void)setEditedOrder:(Order *) order;

-(void)clearCurrentOrder;
-(void)saveCurrentOrder;
-(void)backCurrentOrder;

-(void)pickContact;
-(void)pickShipmentDate;
@end
